﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataLogical;
using System.Data;

namespace Biz.UserManagement
{
    public class IDAdmin : Employee
    {
        public static List<Employee> ListAll()
        {
            DataTable dt = new DataLogical.User().GetAll();
            List<Employee> l = new List<Employee>();
            foreach (DataRow dr in dt.Rows)
            {
                l.Add(new Employee(int.Parse(dr["ID"].ToString())));
            }
            return l;
        }

        public static Employee New()
        {
            return new Employee();
        }

        
    }
}
